@bg-color: #b7d4a8;

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  font: bold 20px "Courier";
}

#main {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-around;
  height: 420px;
  width: 360px;
  margin: 0 auto;
  background-color: @bg-color;
  border: 10px solid #000000;
  border-radius: 40px;

  #stage {
    position: relative;
    width: 304px;
    height: 304px;
    border: 2px solid black;

    #snake {
      &>div {
        position: absolute;
        height: 10px;
        width: 10px;
        background-color: #000000;
        border: 1px solid @bg-color;
      }
    }

    #food {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      position: relative;
      left: 20px;
      top: 20px;
      width: 10px;
      height: 10px;
      &>div {
        width: 4px;
        height: 4px;
        background-color: #000000;
        transform: rotate(45deg);
      }
    }
  }

  #score-panel {
    display: flex;
    width: 300px;
    justify-content: space-between;
  }
}